package com.sr.entity;

import java.util.HashSet;
import java.util.Set;

public class Author {
	private int id;
	private String userName;
	private String password;
	private String idCard;
	private String authorPenName;
	private int numberOfWorks;
	private int numberOfFans;
	private String listimg;
	
	public String getListimg() {
		return listimg;
	}

	public void setListimg(String listimg) {
		this.listimg = listimg;
	}

	public Author() {
	}
	
	public Author(String userName, String password) {
		super();
		this.userName = userName;
		this.password = password;
	}
	
	public Author(int id, String userName, String idCard, String authorPenName) {
		super();
		this.id = id;
		this.userName = userName;
		this.idCard = idCard;
		this.authorPenName = authorPenName;
	}

	public Author(String userName, String idCard, String authorPenName) {
		super();
		this.userName = userName;
		this.idCard = idCard;
		this.authorPenName = authorPenName;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public String getAuthorPenName() {
		return authorPenName;
	}

	public void setAuthorPenName(String authorPenName) {
		this.authorPenName = authorPenName;
	}

	public int getNumberOfWorks() {
		return numberOfWorks;
	}

	public void setNumberOfWorks(int numberOfWorks) {
		this.numberOfWorks = numberOfWorks;
	}

	public int getNumberOfFans() {
		return numberOfFans;
	}

	public void setNumberOfFans(int numberOfFans) {
		this.numberOfFans = numberOfFans;
	}

	@Override
	public String toString() {
		return "Author [id=" + id + ", userName=" + userName + ", password=" + password + ", idCard=" + idCard
				+ ", authorPenName=" + authorPenName + ", numberOfWorks=" + numberOfWorks + ", numberOfFans="
				+ numberOfFans + ", listimg=" + listimg + "]";
	}

	public Author(String userName, String password, String idCard, String authorPenName) {
		super();
		this.userName = userName;
		this.password = password;
		this.idCard = idCard;
		this.authorPenName = authorPenName;
	}

}
